package com.vanzo.nfc;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.vanzo.encryption.R;

/**
 * Created by tisen on 2018/3/3.
 */

public class TestActivity extends AppCompatActivity {

    private Button send;
    private Button receiver;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_nfc_test);
        send = (Button) findViewById(R.id.nfc_send);
        receiver = (Button) findViewById(R.id.nfc_receiver);
        send.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(TestActivity.this, SendActivity.class));
            }
        });
        receiver.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(TestActivity.this, ReceiverActivity.class));
            }
        });

    }
}
